package com.example.littleSpider.myapplication.fragment.gankuai.recive;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.example.littleSpider.myapplication.R;
import com.example.littleSpider.myapplication.adapter.IntentionAdatper;
import com.example.littleSpider.myapplication.base.BaseFragment;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

/**
 * Created by EDZ on 2017/12/26.
 */

public class MayFragment extends BaseFragment {

    @BindView(R.id.recycle_may)
    RecyclerView recycle_may;
    @Override
    protected int setLayout() {
        return R.layout.fragment_may;
    }

    @Override
    protected void initView() {
        recycle_may.setLayoutManager(new LinearLayoutManager(getContext()));

        List<String> datas = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            datas.add("");
        }

        IntentionAdatper adatper = new IntentionAdatper(R.layout.item_intention,datas);

        recycle_may.setAdapter(adatper);
    }

    @Override
    protected void initData() {

    }
}
